/*********************************************************************
	Rhapsody	: 7.6
	Login		: Pawel
	Component	: DefaultComponent
	Configuration 	: DefaultConfig
	Model Element	: IndoorDisplayView
//!	Generated Date	: Sun, 27, Nov 2011 
	File Path	: DefaultComponent/DefaultConfig/GUI/IndoorDisplayView.java
*********************************************************************/

package GUI;

//## link itsIDisplay 
import Hardware.IDisplay;
//## auto_generated
import com.ibm.rational.rhapsody.animation.*;
//## auto_generated
import com.ibm.rational.rhapsody.animcom.animMessages.*;

//----------------------------------------------------------------------------
// GUI/IndoorDisplayView.java                                                                  
//----------------------------------------------------------------------------

//## package GUI 


//## class IndoorDisplayView 
public class IndoorDisplayView implements Animated {
    
    //#[ ignore
    // Instrumentation attributes (Animation)
    private Animate animate;
    
    public static AnimClass animClassIndoorDisplayView = new AnimClass("GUI.IndoorDisplayView",false);
    //#]
    
    protected IDisplay itsIDisplay;		//## link itsIDisplay 
    
    protected IDisplayView itsIDisplayView;		//## link itsIDisplayView 
    
    
    // Constructors
    
    //## auto_generated 
    public  IndoorDisplayView() {
        try {
            animInstance().notifyConstructorEntered(animClassIndoorDisplayView.getUserClass(),
               new ArgData[] {
               });
        
        }
        finally {
            animInstance().notifyMethodExit();
        }
        
    }
    
    //## auto_generated 
    public IDisplay getItsIDisplay() {
        return itsIDisplay;
    }
    
    //## auto_generated 
    public void setItsIDisplay(IDisplay p_IDisplay) {
        itsIDisplay = p_IDisplay;
        if(p_IDisplay != null)
            {
                animInstance().notifyRelationAdded("itsIDisplay", p_IDisplay);
            }
        else
            {
                animInstance().notifyRelationCleared("itsIDisplay");
            }
    }
    
    //## auto_generated 
    public IDisplayView getItsIDisplayView() {
        return itsIDisplayView;
    }
    
    //## auto_generated 
    public void setItsIDisplayView(IDisplayView p_IDisplayView) {
        itsIDisplayView = p_IDisplayView;
        if(p_IDisplayView != null)
            {
                animInstance().notifyRelationAdded("itsIDisplayView", p_IDisplayView);
            }
        else
            {
                animInstance().notifyRelationCleared("itsIDisplayView");
            }
    }
    
    //#[ ignore
    /**  see com.ibm.rational.rhapsody.animation.Animated interface */
    public AnimClass getAnimClass() { 
        return animClassIndoorDisplayView; 
    }
    /**  see com.ibm.rational.rhapsody.animation.Animated interface */
    public Object getFieldValue(java.lang.reflect.Field f, Object userInstance) { 
         Object obj = null;
         try {
             obj = f.get(userInstance);
         } catch(Exception e) {
              System.err.println("Exception: getting Field value: " + e);
              e.printStackTrace();
         }
         return obj;
    }
    /**  see com.ibm.rational.rhapsody.animation.Animated interface */
    public AnimInstance animInstance() {
        if (animate == null) 
            animate = new Animate(); 
        return animate; 
    } 
    /**  see com.ibm.rational.rhapsody.animation.Animated interface */
    public void addAttributes(AnimAttributes msg) {
        
    }
    /**  see com.ibm.rational.rhapsody.animation.Animated interface */
    public void addRelations(AnimRelations msg) {
        
        msg.add("itsIDisplayView", false, true, itsIDisplayView);
        msg.add("itsIDisplay", false, true, itsIDisplay);
    }
    /** An inner class added as instrumentation for animation */
    public class Animate extends AnimInstance { 
        public  Animate() { 
            super(IndoorDisplayView.this); 
        } 
        public void addAttributes(AnimAttributes msg) {
            IndoorDisplayView.this.addAttributes(msg);
        }
        public void addRelations(AnimRelations msg) {
            IndoorDisplayView.this.addRelations(msg);
        }
        
    } 
    //#]
    
}
/*********************************************************************
	File Path	: DefaultComponent/DefaultConfig/GUI/IndoorDisplayView.java
*********************************************************************/

